﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystemModel;

namespace CommunitySystem.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“JuZhuanAnZhiService”。
    public class JuZhuanAnZhiService : IJuZhuanAnZhiService
    {
        private JuZhuanAnZhiBO bo = new JuZhuanAnZhiBO();
        public System.Collections.ObjectModel.ObservableCollection<CommunitySystemModel.JuZhuanAnZhiJiHuaModel> GetZhaoLuJiHuaModel(int zhaoluid, string islocked)
        {
            return bo.GetZhaoLuJiHuaModel(zhaoluid, islocked);
        }

        public System.Collections.ObjectModel.ObservableCollection<CommunitySystemModel.JuZhuanAnZhiJiHuaModel> GetZhaoLuJiHuaModelForCom()
        {
            return bo.GetZhaoLuJiHuaModelForCom();
        }

        public int InsertJuZhuanAnZhiJiHuaTitle(JuZhuanAnZhiJiHuaModel ZhaoLuJiHua)
        {
            return bo.InsertJuZhuanAnZhiJiHuaTitle(ZhaoLuJiHua);
        }

        public bool DeleteJuZhuanAnZhiJiHua(int id)
        {
            return bo.DeleteJuZhuanAnZhiJiHua(id);
        }

        public bool SuoJuZhuanAnZhiJiHua()
        {
            return bo.SuoJuZhuanAnZhiJiHua();
        }

        public ObservableCollection<JuZhuanAnZhiJiHuaEmpModel> GetJuZhuanAnZhiJiHuaEmpModel(int zhaoluid, string name, int id)
        {
            return bo.GetJuZhuanAnZhiJiHuaEmpModel(zhaoluid, name, id);
        }

        public bool AddJuZhuanAnZhiJiHuaEmpModel(JuZhuanAnZhiJiHuaEmpModel item)
        {
            return bo.AddJuZhuanAnZhiJiHuaEmpModel(item);
        }


        public bool UpdateJuZhuanAnZhiJiHuaEmpModel(JuZhuanAnZhiJiHuaEmpModel item)
        {
            return bo.UpdateJuZhuanAnZhiJiHuaEmpModel(item);
        }
        
        public bool DeleteJuZhuanAnZhiJiHuaEmp(int id)
        {
            return bo.DeleteJuZhuanAnZhiJiHuaEmp(id);
        }

        public bool QueRenJuZhuanAnZhiJiHuaEmpModel(ObservableCollection<JuZhuanAnZhiJiHuaEmpModel> item, DateTime? dt)
        {
            return bo.QueRenJuZhuanAnZhiJiHuaEmpModel(item, dt);
        }
    }
}
